import re

# <span data-v-7f856186="">中国内地、中国香港</span>
# <span data-v-7f856186="">法国</span>

with open('page1.html', 'rb') as page1:
    content = page1.read().decode('utf-8')
    pattern_h2 = re.compile('<h2.*?>(.*?)</h2>', re.S)
    # todo 添加一个pattern_time，拿电影上映时间
    pattern_area = re.compile('<span data-v-7f856186="">(.*?)</span>', re.S)
    findall_h2 = re.findall(pattern_h2, content)
    # todo 通过re.findall(pattern_time ,content)
    #  找到所有电影上映时间
    findall_area = re.findall(pattern_area, content)
    print(findall_h2)
    print(findall_area)
